//
//  BaseViewController.h
//  funLove
//
//  Created by MZ on 2022/3/11.
//

#import <UIKit/UIKit.h>
#import <MJRefresh/MJRefresh.h>
#import <ZXNavigationBarController.h>
//空白页
#import <DZNEmptyDataSet/UIScrollView+EmptyDataSet.h>

NS_ASSUME_NONNULL_BEGIN

typedef void(^ClickBlock)(void);

@interface BaseViewController : ZXNavigationBarController
//常用表
@property (nonatomic , strong) UITableView * tableView;
//常用数组
@property (nonatomic , strong) NSMutableArray * jsonArray;
//常用表
@property (nonatomic , strong) UICollectionView * collectionView;

@property (nonatomic , assign) int page;

 
@property (nonatomic) ClickBlock clickBlock;                // 点击事件
@property (nonatomic, assign) CGFloat offset;               // 垂直偏移量
@property (nonatomic, copy) NSString *emptyText;          // 空数据显示内容
@property (nonatomic, copy) NSString *emptyImage;          // 空数据的图片名称
//是否显示空数据 默认为yes,显示
@property (nonatomic , assign) BOOL showEmpty;
@property (nonatomic, strong)MJRefreshNormalHeader * header;
@property (nonatomic , strong)MJRefreshAutoNormalFooter * footer;

-(void)SQ_Header;
-(void)SQ_Foother;
/// 添加ui
-(void)SQ_UIViewForSelfView;
//collectionView设置cell
-(void)SQ_UICollectionViewRegisterClass:(NSString*)string;
//模态
- (void)SQ_presentFull:(UIViewController *)vc;
//跳转vc
- (void)SQ_pushViewControllerFull:(UIViewController *)vc;
//导航返回
-(void)SQ_popViewVC;

 

-(void)SQ_tableViewAddRefresh;
-(void)SQ_collectViewAddRefresh;

-(void)SQ_viewWillAppear:(BOOL)animated;
 
@end

NS_ASSUME_NONNULL_END
